﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Plane : Vehicle, IFlyable
    {
        public string name { get; set; }
        public Plane(string name)
        {
            this.name = name;
        }
        public void Fly()
        {
            Console.WriteLine("{0}在飞",name);
        }

        public void Land()
        {
            Console.WriteLine("{0}降落！！！",name);
        }

        public void TakeOff()
        {
            Console.WriteLine("{0}起飞！！！",name);
        }
    }
}
